package anji.plus.system.mark.domain;

import anji.plus.system.mark.base.BaseDomain;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;


/**
 * <p>
 * 系统用户表
 * </p>
 *
 * @author luwei
 * @since 2023-11-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class Flag extends BaseDomain {

    private static final long serialVersionUID = 1L;

    /**
     * 用户名
     */
    @TableField("ID")
    private Long id;

    /**
     * 用户名
     */
    @TableField("NAME")
    private String name;

    /**
     * FLAG名称
     */
    @TableField("FLAG_NAME")
    private String flagName;

    /**
     * FLAG详情备注
     */
    @TableField("FLAG_INFO")
    private String flagInfo;

    /**
     * 完成时间
     */
    @TableField("FLAG_COMPLETE_TIME")
    private String flagCompleteTime;

    /**
     * 进度
     */
    @TableField("FLAG_PROGRESS")
    private String flagProgress;

    public String getFlagProgress() {
        if (this.flagProgress == null) {
            return "0.00";
        }
        return flagProgress;
    }

    /**
     * 点赞数
     */
    @TableField("FLAG_MARK")
    private String flagMark;

    /**
     * 完成情况
     */
    @TableField("FLAG_COMPLETE_INFO")
    private String flagCompleteInfo;

    public String getFlagCompleteInfo() {
        if (this.flagCompleteInfo == null) {
            return "";
        }
        return flagCompleteInfo;
    }
    /**
     * 完成情况
     */
    @TableField("CREATE_TIME")
    private String createTime;

    public String getCreateTime() {
        if (this.createTime == null) {
            return "";
        }
        return createTime.substring(0, 19);
    }


    /**
     * 修改时间
     */
    @TableField("UPDTAE_TIME")
    private String updtaeTime;

    public String getUpdtaeTime() {
        if (this.updtaeTime == null) {
            return "";
        }
        return updtaeTime.substring(0, 19);
    }
}
